<?php

class Form_Admin_Menu_AddElement extends Form
{
	function init()
	{

		$this -> addChild('text', 'id', array('label' => 'id'));
		
		$this -> addChild('radio', 'type', array(
			'label' => 'type',
			'value' => 'static',
			'multiOptions' => array(
				'static' => 'static',
				'callback' => 'callback'
			)
		));
		
		$this -> addChild('text', 'path', array('label' => 'path'));

		$this -> addChild('text', 'pid', array('label' => 'pid'));

		$this -> addChild('text', 'label', array('label' => 'label'));

		$this -> addChild('text', 'position', array('label' => 'position'));

		$this -> addChild('radio', 'active', array(
			'label' => 'active',
			'multiOptions' => array(
				0 => 'no',
				1 => 'yes'
			),
			'value' => 1
		));
		
		$this -> addChild('group', '_buttons');
		
		$this -> _buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
